/**
 * Marlin 3D Printer Firmware
 * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
 *
 * Based on Sprinter and grbl.
 * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
	 
	 
	 
	 
	 
	 const u16 Temperature_Table_B3950[301] = 
	 {
		 4038, 
		 4035, 
		 4032, 
		 4029, 
		 4025, 
		 4022, 
		 4019, 
		 4015, 
		 4011, 
		 4007, 
		 4003, 
		 3998, 
		 3993, 
		 3989, 
		 3984, 
		 3979, 
		 3973, 
		 3968, 
		 3962, 
		 3956, 
		 3949, 
		 3942, 
		 3935, 
		 3928, 
		 3920, 
		 3912, 
		 3904,	
		 3894,//3896,	 
		 3888,//			 27c
		 3881,
		 3874, 
		 3865, 
		 3856, 
		 3847,
		 3836, 
		 3826,
		 3814,//		   35c
			 
		 3803,	 
		 3790,				   
		 3777,
		 3764,//	 array_num 40
		 3750,//  40c
			 
		 3737, 
		 3723, 
		 3710,
		 3704,//3698,
		 3698,//3683,	  
		 3683,//3668, 
		 3668,//3653, 
		 3653,//3637,	
		 3637,//3622, 
		 3622,//3606,	  50c 
			 
		 3606,//3589, 
		 3589,//3573,				
		 3573,//3555,
		 3555,//3538,				
		 3538,//3520,	  55c
			 
		 3520,//3501,	   
		 3501,//3481,				
		 3481,//3461,			   
		 3461,//3439,		   array_num60	   
			 3439,//3419,	   60c	
			 
		 3429,//3398,	
		 3419,//3376, 
		 3398,//3354,
		 3376,//3331,		 
		 3354,//3308,	   65c	
			 
		 3331,//3284,		  
		 3308,//3260, 
		 3284,//3236,	   
		 3260,//3211,	
			 3236,//3187,	  70c  
			 
		 3211, //3161,
		 3187, //3136,
		 3161,//3111,
		 3136,//3086,
		 3123,//3061,
			 
		 3111,//3036,  
		 3086,//3010,	   77c	
		 3061,//2985, 
		 3036,//2959, 
		 3010,//2933,	   80c
			 
		 2985,//2907, 
		 2959, //2880,
		 2933, //2853,
		 2907,//2824, 
		 2880,//2796,	  85c
			
				 
		 2853,//2766, 
		 2824,//2736, 
		 2796,//2704, 
		 2766,//2672, 
		 2751,//2641,
			 
		 2736,//2611,// 	91C
		 2704,//2581,
		 2672,//2551, 
		 2641,//2522, 
				  
		 2611,//2492,// 	 95C
		 2581,//2463, 
		 2551,//2433,
		 2522,//2403,
		 2507,//2372, 
		 2492,//2341,// 	 100c
			 
		 2463,//2309, 
		 2433,//2276, 
		 2403,//2242, 
		 2372,//2208, 
		 2341,//2180,// 	  105c
				  
				  
		 2309,//2150, 
		 2276,//2120, 
		 2242,//2090, 
		 2208,//2058, 
		 2194,//2027,		110c
			 
		 2180,//1995, 
		 2165,//1964, 
		 2150,//1932, 
			 2120,//1901, 
		 2090,//1871, 
		 2058,//1842, 
		 2042,//1814, 
		 2027,//1787, 
		 1995,//1761, 
		 1964,//1731,// 	 120c
			 
		 1932,//1702, 
		 1901,//1674, 
		 1871,//1647, 
		 1842,//1621, 
		 1828,//1596,
			 
		 1814,//1571, 
		 1800,//1547, 
		 1787,//1523,// 	128c 
		 1761,//1499, 
		 1731,//1475, 
			 
		 1702,//1451, 
		 1674,//1426, 
		 1647,//1401, 
		 1621,//1375, 
		 1596,//1348, 
		 1571,//1323, 
		 1547,//1298, 
		 1523,//1273, 
		 1499,//1250, 
		 1475,//1227,// 	140c 
			 
		 1451,//1205, 
		 1426,//1184, 
		 1401,//1164, 
		 1375,//1144, 
		 1348,//1125,// 	145c
			 
		 1323,//1107, 
		 1298,//1090, 
		 1273,//1073, 
		 1250,//1057, 
		 1227,//1035,	   150c
			 
		 1205,//1014, 
		 1184,//994, 
		 1164,//975, 
		 1144,//957, 
		 1125,//940,//	   155c
			 
		 1107,//924, 
		 1090,//908, 
		 1073,//892, 
		 1057,//876, 
		 1035,//861, 
		 1014,//845, 
		 994,//829, 
		 975,//813, 
		 957,//797, 
		 940,//782, //	  165c
			 
		 924,//768, 
		 908,//754, 
		 892,//740, 
		 876,//727, 
		 861,//713, 
		 829,//701, 
		 813,//688, 
		 797,//676, 
		 782,//664, 
		 768,//652,//	  175c
			 
		 754,//641, 
		 740,//629, 
		 727,//618, 
		 713,//607, 
		 701,//594, 	 180C
			 
		 688,//583, 
		 676,//572, 
		 664,//562, 
		 652,//552, 
		 641,//543, 
		 629,//535, 
		 618,//526, 
		 607,//518, 
		 594,//509, 
		 583,//501, 	  190C
			 
		 572,//493, 
		 562,//484, 
		 552,//475, 
		 543,//465, 
		 535,//458, 
		 526,//451, 
		 518,//444, 
		 509,//436, 
		 501,//428, 
		 493,//420, 	   200C
			 
		 484,//412, 
		 475,//404, 
		 465,//396, 
		 458,//389, 
		 451,//381, 
		 444,//374, 
		 436,//368, 
		 428,//361, 
		 420,//356, 
		 412,//349, 	  210C
			 
		 404,//343, 
		 396,//337, 
		 389,//332, 
		 381,//326, 
		 374,//320, 
		 368,//314, 
		 361,//309, 
		 356,//304, 
		 349,//298, 
		 343,//293, 	 220C
			 
		 337,//288, 
		 332,//283, 
		 326,//278, 
		 320,//273, 
		 314,//269, 
		 309,//265, 
		 304,//260, 
		 298,//256, 
		 293,//251, 
		 288,//247,//		 230C
			 
		 283,//243, 
		 278,//238, 
		 273,//234, 
		 269,//230, 
		 265,//226, 
		 260,//222, 
		 256,//219, 
		 251,//215, 
		 247,//212, 
		 243,//208,//		240C
			 
		 238,//205, 
		 234,//202, 
		 230,//199, 
		 226,//196, 
		 222,//193, 
		 219,//190, 
		 215,//187, 
		 212,//184, 
		 208,//181, 
		 205,//178,//	   250C
			 
		 202,//174, 
		 199,//172, 
		 196,//170, 
		 193,//166, 
		 190,//164, 
		 187,//162, 
		 184,//159, 
		 181,//157, 
		 178,//154, 
		 174,//152,//		260C 
			 
		 172,//150, 
		 170,//147, 
		 166,//145, 
		 164,//142, 
		 162,//140, 
		 159,//137, 
		 157,//136, 
		 154,//134, 
		 152,//132, 
		 150,//130, 	   270c
			 
		 147,//128, 
		 145,//126, 
		 142,//123, 
		 140,//122, 
		 137,//120, 
		 136,//118, 
		 134,//116, 
		 132,//114, 
		 130,//113, 
		 128,//111, 	   280c
			 
		 126,//109, 
		 123,//108, 
		 122,//106, 
		 120,//105, 
		 118,//103, 
		 116,//101, 
		 114,//100, 
		 113,//98, 
		 111,//96, 
		 109,//95,		  290c
			 
		 108,//93, 
		 106,//91, 
		 105,//90, 
		 103,//88, 
		 101,//87, 
		 100,//86, 
		 98,//85, 
		 96,//84, 
		 93,//83, 
	 
	 };

// R25 = 100 kOhm, beta25 = 4092 K, 4.7 kOhm pull-up, bed thermistor
const short temptable_1[][2] PROGMEM = {
  { OV(  23), 300 },
  { OV(  25), 295 },
  { OV(  27), 290 },
  { OV(  28), 285 },
  { OV(  31), 280 },
  { OV(  33), 275 },
  { OV(  35), 270 },
  { OV(  38), 265 },
  { OV(  41), 260 },
  { OV(  44), 255 },
  { OV(  48), 250 },
  { OV(  52), 245 },
  { OV(  56), 240 },
  { OV(  61), 235 },
  { OV(  66), 230 },
  { OV(  71), 225 },
  { OV(  78), 220 },
  { OV(  84), 215 },
  { OV(  92), 210 },
  { OV( 100), 205 },
  { OV( 109), 200 },
  { OV( 120), 195 },
  { OV( 131), 190 },
  { OV( 143), 185 },
  { OV( 156), 180 },
  { OV( 171), 175 },
  { OV( 187), 170 },
  { OV( 205), 165 },
  { OV( 224), 160 },
  { OV( 245), 155 },
  { OV( 268), 150 },
  { OV( 293), 145 },
  { OV( 320), 140 },
  { OV( 348), 135 },
  { OV( 379), 130 },
  { OV( 411), 125 },
  { OV( 445), 120 },
  { OV( 480), 115 },
  { OV( 516), 110 },
  { OV( 553), 105 },
  { OV( 591), 100 },
  { OV( 628),  95 },
  { OV( 665),  90 },
  { OV( 702),  85 },
  { OV( 737),  80 },
  { OV( 770),  75 },
  { OV( 801),  70 },
  { OV( 830),  65 },
  { OV( 857),  60 },
  { OV( 881),  55 },
  { OV( 903),  50 },
  { OV( 922),  45 },
  { OV( 939),  40 },
  { OV( 954),  35 },
  { OV( 966),  30 },
  { OV( 977),  25 },
  { OV( 985),  20 },
  { OV( 993),  15 },
  { OV( 999),  10 },
  { OV(1004),   5 },
  { OV(1008),   0 },
  { OV(1012),  -5 },
  { OV(1016), -10 },
  { OV(1020), -15 }
};
